import SelectFormElement from "../../using/form-elements/select-form-element";
import FieldConfig from "../../using/typing/field-config";
import DyForm from "../../DyForm";
import RootContainerDesign from "../root-container-design";
import {ElementOperator} from "../element-operator";
import {FormElementDesign} from "./form-element-design";

export default class SelectFormElementDesign implements FormElementDesign<string> {
    private readonly proxy: SelectFormElement
    private readonly operator: ElementOperator
    constructor(protected config: FieldConfig, height: number, protected form: DyForm, private container: RootContainerDesign) {
        this.proxy = new SelectFormElement(config,height, form)
        this.operator = new ElementOperator(this.proxy, this.container)
    }

    getName(): string {
        return "";
    }

    getValue(): string {
        return "";
    }

    getEl(): HTMLElement {
        return this.proxy.getEl();
    }

    getConfig(): FieldConfig {
        return this.proxy.getConfig()
    }
}
